package com.bjpowernode;

import com.bjpowernode.entity.Student;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) throws JsonProcessingException {
        List list=new ArrayList();
        list.add(new Student());
        ObjectMapper objectMapper=new ObjectMapper();
        String json=objectMapper.writeValueAsString(list);
        System.out.println(json);

    }
}
